<template>
  <t-input v-model="value" @input="find" />
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { debounce } from '@/soar';
import api from './api';

const value = ref();

const find = debounce(() => {
  api.getUser(value).then((res) => {
    console.log(res);
  });
});
</script>
<script lang="ts">
export default {
  name: 'GetUser',
};
</script>

<style scoped lang="less"></style>
